﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSEPT
{
    public class Event
    {
        public Event()
        {
            init(0,string.Empty, DateTime.Now, DateTime.Now, string.Empty, new User());
        }
        public Event(int id)
        {
            init(id, string.Empty, DateTime.Now, DateTime.Now, string.Empty, new User());
        }
        public Event(int id,string title, DateTime sdate, DateTime edate, string desc, int userid)
        {
            init(id,title, sdate, edate, desc, new User(userid));
        }
        private void init(int id, string title, DateTime sdate, DateTime edate, string desc, User u)
        {
            ID = id;
            Title = title;
            StartDate = sdate;
            EndDate = edate;
            Description = desc;
            Owner = u;
        }
        private int _ID;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private string _Title;

        public string Title
        {
            get { return _Title; }
            set { _Title = value; }
        }
        
        private DateTime _StartDate;

        public DateTime StartDate
        {
            get { return _StartDate; }
            set { _StartDate = value; }
        }
        private DateTime _EndDate;

        public DateTime EndDate
        {
            get { return _EndDate; }
            set { _EndDate = value; }
        }

        private string _Description;

        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        private User _Owner;

        public User Owner
        {
            get { return _Owner; }
            set { _Owner = value; }
        }
        private int _registedCount;

        public int RegisteredCount
        {
            get { return _registedCount; }
            set { _registedCount = value; }
        }
        private Photo _Thumbnail;

        public Photo Thumbnail
        {
            get { return _Thumbnail; }
            set { _Thumbnail = value; }
        }
        
    }
}
